<template>
  <view>
    <julian-header title="登录"></julian-header>
    <van-button @click="$Router.push('/pages/login/index')">navigateTo</van-button>
    <van-button @click="$Router.pushTab('/pages/tabbar/profile')">switchTab</van-button>
    <van-button @click="$Router.replace('/pages/tabbar/home')">redirectTo</van-button>
    <van-button @click="$Router.replaceAll('/pages/tabbar/home')">reLaunch</van-button>
    <van-button @click="$Router.back(1)">navigateBack</van-button>
    <van-button @click="$Router.push({ path: '/pages/login/index', query: { type: 12 } })">路由传参</van-button>
    <image src="/pages_sub/static/img/icon-index-active.png" mode="scaleToFill" />
  </view>
</template>

<script>
export default {
  data() {
    return {}
  },
  onLoad() {
    // 参数获取
    console.log(this.$Route.query)
  }
}
</script>

<style lang="scss" scoped>
</style>
